<template>
  <div class="homeHeader">
    <section id="homeTop">
      <div class="homeHeaderNav">
        <div class="homeLogo"></div>
        <input type="text" class="homeSearch" @click="$emit('set:show')"/>
        <div class="homeBubble">
          <a href="javascript:;">
              消息
          </a>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  name: "homeHeader"
};
</script>

<style scoped>
#homeTop {
  padding: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0);
  top: 0;
  position: fixed;
  width: 100%;
  max-width: 12.8rem;
  transform: translateY(0);
  border: none;
}

.homeHeaderNav {
  padding: 0.1rem 0.8rem 0.1rem 1.28rem;
  margin: 0;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  background: url("../../assets/icon/toyy4.png") left top repeat-x;
}

.homeLogo {
  width: 1rem;
  height: 0.6rem;
  position: absolute;
  top: 0.1rem;
  left: 0.16rem;
  background: url("../../assets/icon/logo.png") center center no-repeat;
  background-size: 1rem 0.6rem;
}

.homeSearch {
  display: block;
  position: relative;
  padding: 0 0.6rem 0 0.2rem;
  box-sizing: border-box;
  width: 100%;
  float: right;
  overflow: hidden;
  height: 0.6rem;
  line-height: 0.6rem;
  border: 1px solid #fff;
  padding-left: 0.76rem;
  color: #fff;
  padding-right: 0.28rem;
  border-radius: 0.1rem;
  background: url("../../assets/icon/search-gray.png") 0.24rem center no-repeat #f5f4f4;
  opacity: 1;
  background-size: 0.28rem 0.28rem;
}

.homeBubble {
  position: absolute;
  top: 0;
  right: 0;
  width: .8rem;
  height: 100%;
}

.homeBubble > a{
    padding-top: .4rem;
    font-size: .24rem;
    margin-top: .1rem;
    color: #fff;
    display: block;
    background: url("../../assets/icon/information-small.png") center top no-repeat;
    background-size: .32rem auto;
    text-align: center;
}
</style>